package com.siyu.prewarn.mesuser.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.siyu.prewarn.mesuser.mapper.MesuserMapper;
import com.siyu.prewarn.mesuser.domain.Mesuser;
import com.siyu.prewarn.mesuser.service.IMesuserService;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.siyu.prewarn.mesuser.mapper.MesuserMapper;
import com.siyu.prewarn.mesuser.domain.Mesuser;
import com.siyu.prewarn.mesuser.service.IMesuserService;

/**
 * 预警对象Service业务层处理
 *
 * @author hrhy
 * @date 2024-06-15
 */
@Service
public class MesuserServiceImpl extends ServiceImpl<MesuserMapper, Mesuser> implements IMesuserService {
    @Autowired
    private MesuserMapper mesuserMapper;

    /**
     * 查询预警对象
     *
     * @param id 预警对象主键
     * @return 预警对象
     */
    @Override
    public Mesuser selectMesuserById(String id) {
        return mesuserMapper.selectMesuserById(id);
    }

    /**
     * 查询预警对象列表
     *
     * @param mesuser 预警对象
     * @return 预警对象
     */
    @Override
    public List<Mesuser> selectMesuserList(Mesuser mesuser) {
        return mesuserMapper.selectMesuserList(mesuser);
    }

    /**
     * 新增预警对象
     *
     * @param mesuser 预警对象
     * @return 结果
     */
    @Override
    public int insertMesuser(Mesuser mesuser) {
        return mesuserMapper.insertMesuser(mesuser);
    }

    /**
     * 修改预警对象
     *
     * @param mesuser 预警对象
     * @return 结果
     */
    @Override
    public int updateMesuser(Mesuser mesuser) {
        return mesuserMapper.updateMesuser(mesuser);
    }

    /**
     * 批量删除预警对象
     *
     * @param ids 需要删除的预警对象主键
     * @return 结果
     */
    @Override
    public int deleteMesuserByIds(String[] ids) {
        return mesuserMapper.deleteMesuserByIds(ids);
    }

    /**
     * 删除预警对象信息
     *
     * @param id 预警对象主键
     * @return 结果
     */
    @Override
    public int deleteMesuserById(String id) {
        return mesuserMapper.deleteMesuserById(id);
    }
}


